package org.bitterorange.flansmodslain.models;

import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class BukkitPlayerReviveEvent extends Event {
    private static final HandlerList Handlers = new HandlerList();
    private final Player reviver;
    private final Player revived;
    private final double posX;
    private final double posY;
    private final double posZ;
    private final String weapon;

    public BukkitPlayerReviveEvent(Player reviver, Player revived, double posX, double posY, double posZ, String weapon) {
        this.reviver = reviver;
        this.revived = revived;
        this.posX = posX;
        this.posY = posY;
        this.posZ = posZ;
        this.weapon = weapon;
    }

    public Player getReviver() {
        return reviver;
    }

    public Player getRevived() {
        return revived;
    }

    public double getPosX() {
        return posX;
    }

    public double getPosY() {
        return posY;
    }

    public double getPosZ() {
        return posZ;
    }

    public static HandlerList getHandlerList() {
        return Handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

    public String getWeapon() {
        return weapon;
    }
}
